﻿using System;
using System.Data.Entity;
using System.Linq;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Derbster.Data.Test
{
    [TestClass]
    public class DerbsterDbContextUnitTest
    {
        [TestMethod]
        public void TestMethodCreate()
        {
            Database.SetInitializer(new DropCreateDatabaseAlways<DerbsterDbContext>());
            using (var dbContext = new DerbsterDbContext("Derbster.Data.Test"))
            {
                
                Assert.IsNotNull(dbContext);
                Assert.IsTrue(!dbContext.Matches.Any());
            }
        }
    }
}
